<?php

if(!defined('BASEPATH')) {
    exit('No direct script access allowed');
}

/**
 * Event handler
 * @author 徐亚坤 hdyakun@sina.com
 */

class TagHandler
{
    public function __construct() { }

    public function handle($data) { }

    public function after_index($subject)
    {
        echo $subject->model.'-tag', '<br>';
    }

    public function subscribe($events)
    {
        $events->listen('after_index', __CLASS__.'@after_index');
    }
}